package com.ruoyi.web.controller.common;

import com.ruoyi.web.util.TencentOssUploadUtils;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

/*
 *  @author 雨安
 *  类名： UniSaveQrController
 *  创建时间：2025/3/7
 */
@RestController
@RequestMapping("/uni/save")
public class UniSaveQrController {


    @PostMapping("/upload3")
    public String uploadTestFile3(MultipartFile file) throws Exception {
        //获取返回文件名
        String fileName = TencentOssUploadUtils.uploadFile(file);
        //返回结果
        return fileName;
    }

}
